import random
def isWin(user,computer):
    if user == computer:
        print("平局")
    elif (user == "石头" and computer == "剪刀") or (user == "剪刀" and computer == "布") or (user == "布" and computer == "石头"):
        print("你赢了")
    else:
        print("你输了")

choices = ["石头","剪刀","布"]



def StartGame(UserChoice):
    print("猜拳游戏开始")
    if UserChoice not in choices:
        print("输入错误")
    else:
        print("你出拳：",UserChoice)
    computerChoice = random.choice(choices)
    print("电脑出拳：",computerChoice)
    isWin(UserChoice,computerChoice)